package com.zxx.mydesignpluginplugin;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.Gravity;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.zxx.mydesignplugin.PluginActivity;

public class MainActivity extends PluginActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        setTitle("插件Activity");

        Button button = new Button(mProxyActivity);
        button.setText("Start TestActivity");
        button.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT));
        button.setGravity(Gravity.CENTER);

        button.postDelayed(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(mProxyActivity, "插件Activity", Toast.LENGTH_SHORT).show();
            }
        }, 1000);
    }

}
